package com.joinway.mobile.bean.form

import javax.validation.constraints.Min

import org.jsondoc.core.annotation.ApiObject
import org.jsondoc.core.annotation.ApiObjectField

import com.joinway.framework.bean.BaseBean

@ApiObject(name = "ShopCart", description = "客户端购物车信息")
class ShopCart extends BaseBean {
	@ApiObjectField(description="购物车项目id") @Min(1l) int cartId
	@ApiObjectField(description="商品数量") @Min(1l) int amount
	@ApiObjectField(description="商品总价") double cost
}
